package trading.algo.APIConnectivityTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

public class MarketDataFarmConnectionTask extends TimerTask {

    private IBAccessorBO ibAccessorBO;
    
    public MarketDataFarmConnectionTask(IBAccessorBO ibAccessorBO) {
        this.ibAccessorBO = ibAccessorBO;
    }
    
    @Override
    public void run() {
        this.ibAccessorBO.reqStockTickSnapshotPrice("AMZN");
    }
    
    public static int secondsNeeded() {
        return 2;
    }

}
